package bbalgae.swing.outline;

import java.awt.Button;

import javax.swing.BoxLayout;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.SwingUtilities;

public class J13_BoxLayout extends JFrame {

	public J13_BoxLayout() {
		setDefaultLookAndFeelDecorated(true);
		setTitle("BoxLayout");
		BoxLayout box = new BoxLayout(getContentPane(), BoxLayout.X_AXIS);
		setBounds(300, 300, 640, 480);
		setLayout(box);
		for (int i = 1; i <= 10; i++) {
			add(new JButton(" 버튼 " + i));
		
		}
		

		setVisible(true);
	}

	public static void main(String[] args) {

		SwingUtilities.invokeLater(new Runnable() {

			@Override
			public void run() {

				new J13_BoxLayout();

			}
		});

	}

}
